<?
require_once('phpbigtable.php');
echo "*** getting an entity by key ...\n";
$key = java_class('KeyFactory')->createKey('User', ENTITY_ID);
$ds = java_class('DatastoreServiceFactory')->getDatastoreService();
$entity = $ds->get($key);
echo "  key:".$entity->getKey()->toString()."\n";
echo "  ".$entity->getProperty('name')."\n";
?>
